﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sheeps
{
    /// <summary>
    /// Sheep walk in random way
    /// </summary>
    public class CrazySheepBehavior : SheepBehaviorAlogorithm
    {
        public override void UpdatePositions(GameState gameState)
        {
            Random rand = new Random();
            foreach (var sheep in gameState.SheepList)
            {
                sheep.Position += new Vector3((double)rand.Next(100) / 100.0 - 0.5, (double)rand.Next(100) / 100.0 - 0.5, 0);
            }
        }
    }
}
